package com.coderxq.blog.web.dao;
import com.coderxq.blog.web.entity.dto.UserRoleParam;
import com.coderxq.blog.web.entity.pojo.User;
import com.coderxq.blog.web.entity.pojo.UserRoleMenu;
import com.coderxq.blog.web.entity.vo.UserInfo;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface UserMapper {
    Integer insertUser(User user);
    Integer insertUsers(List<User> users);
    Integer updateUser(UserInfo userinfo);
    User getUserByUserId(String userId);

    UserInfo getUserInfoByUserId(String userId);

    Integer deleteRoleByUserId(String userId);

    UserInfo findUserByAccount(String account);
    ArrayList<User> findAllUser();
    Integer insertUserRole(UserRoleParam userRoleParam);
    UserRoleMenu findUserRoleMenu(String userId);
}
